<template>
  <div class="error-page">
    <div class="error-card">
      <h2 class="title">404 - 页面未找到</h2>
      <p class="description">您访问的页面不存在，请检查链接或返回首页。</p>
      <button class="primary-btn" @click="$router.push('/')">返回首页</button>
    </div>
  </div>
</template>

<style scoped>
.error-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f8fafc;
}

.error-card {
  background: white;
  padding: 2rem 3rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.title {
  color: #1e293b;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.description {
  color: #64748b;
  margin-bottom: 2rem;
}

.primary-btn {
  background: #4f46e5;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.primary-btn:hover {
  opacity: 0.9;
}
</style>